package com.aysafety.iotdataplatformweb.services.gas;

import java.util.List;
import java.util.Map;

public interface GasService {
    long countByGas(String mineId, String equipmentId, String startTime, String endTime, int timeSpan, String timeUnit)
        throws Throwable;

    List<Map<String, Object>> queryRealTimeByGas(String mineId, String deviceId, String startTime, String endTime,
        int timeSpan, String timeUnit, int page, int size, String startRow) throws Throwable;

    long countByCalGas(Map<String,Object> params) throws Throwable;

    List<Map<String,Object>> queryCalGas(Map<String,Object> params)throws Throwable;

    /** 
    * @Description: 综合预警
    * @Param: [mineId, startTime, endTime] 
    * @return: java.util.Map<java.lang.String,java.lang.Object> 
    * @Author: ChengQi 
    * @Date: 2019/1/11 
    */ 
    Map<String, Object> comprehensiveWarning(String mineId, String startTime, String endTime) throws Throwable;
}
